package com.panshi;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


/**
 * @author :jiege
 * @description :
 * @create :2020-08-04 21:37:00
 */

@SpringBootApplication
@EnableCaching//开启缓存注解
@ServletComponentScan("com.panshi.modules")
@EnableEurekaClient
@MapperScan("com.panshi.modules.system.mapper")
@EnableCircuitBreaker
@ComponentScan(basePackages = "com.panshi")
@EnableSwagger2
@EnableFeignClients
public class SysUserApplication {
    public static void main(String[] args) {

        SpringApplication.run(SysUserApplication.class,args);
    }
}
